﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using UniversalBlazor.Abstract;
using UniversalBlazor.CoreComponent;

namespace UniversalBlazor
{
    public static class UniversalBlazorExtension
    {
        public static IApplicationBuilder UseBlazorComponent(this IApplicationBuilder builder)
        {
            GlobalConfig.ComponentConfig = builder.ApplicationServices.GetRequiredService<IComponentConfig>();
            return builder;
        }
    }
}
